FROM openjdk:8-jre-slim
RUN mkdir -p /opt/${contextPath}
ADD ${contextPath}.jar /opt/${contextPath}/${contextPath}.jar
ENTRYPOINT ["java", "-jar", "/opt/${contextPath}/${contextPath}.jar","--spring.profiles.active=docker"]